﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Lecture.Master" AutoEventWireup="true" CodeBehind="Update_student_info.aspx.cs" Inherits="Final.Update_student_info" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2 class="title">
        <a href="#">Update Student Profile </a>
    </h2>
    <t>
    <t>
    <br />
    </t>
    <asp:Label ID="lbladmin" runat="server" Text="Admin No:"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtadmin" runat="server" Width="242px"></asp:TextBox>
    </t>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtadmin" Display="Dynamic" 
            ErrorMessage="Admin Number Required"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblname" runat="server" Text="Name:"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="txtname" runat="server" Width="242px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtname" Display="Dynamic" ErrorMessage="Name Required"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblpassword" runat="server" Text="Password:"></asp:Label>
    <t>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </t>
    <asp:TextBox ID="txtpassword" runat="server" Width="242px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txtpassword" ErrorMessage="Enter 5-15 alphanumeric" 
            ValidationExpression="^[a-z0-9_-]{3,15}$"></asp:RegularExpressionValidator>
    <br />
    <br />
    <asp:Label ID="lblcode" runat="server" Text="Course Code:"></asp:Label>
    <t>
    &nbsp;&nbsp; 
    </t>
    <asp:TextBox ID="txtcode" runat="server" Width="242px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtcode" Display="Dynamic" ErrorMessage="Enter Course Code"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblcname" runat="server" Text="Course Name:"></asp:Label>
    <t>
    &nbsp; 
    </t>
    <asp:TextBox ID="txtcname" runat="server" Width="242px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="txtcname" Display="Dynamic" ErrorMessage="Enter Course Name"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" Text="Module:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtmodule" runat="server" Width="238px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
            ControlToValidate="txtmodule" ErrorMessage="Enter module"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblcontact" runat="server" Text="Contact No:"></asp:Label>
    <t>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </t>
    <asp:TextBox ID="txtcontact" runat="server" Width="242px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="txtcontact" Display="Dynamic" 
            ErrorMessage="Enter Contact Number"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblemail" runat="server" Text="Email:"></asp:Label>
    <t>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </t>
    <asp:TextBox ID="txtemail" runat="server" Width="242px"></asp:TextBox>
    <t>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
            runat="server" ControlToValidate="txtemail" Display="Dynamic" 
            ErrorMessage="Enter Email"></asp:RequiredFieldValidator>
    <br />
<br />
Role:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtRole" runat="server" Width="242px"></asp:TextBox>
    <t>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
            runat="server" ControlToValidate="txtemail" Display="Dynamic" 
            ErrorMessage="Enter Role (student/lecturer)"></asp:RequiredFieldValidator>
    </t>
    <br />
    <br />
    <t>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </t>
    <asp:Button ID="btn_update" runat="server" Text="Update" 
        onclick="btn_update_Click" />
    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btn_clear" runat="server" 
        Text="Clear" onclick="btn_clear_Click" />
    <br />
    </t></asp:Content>
